import request from '@/utils/request'

// 查询项目活动列表
export function listProjectActivity(query) {
  return request({
    url: '/wbs/projectActivity/list',
    method: 'get',
    params: query
  })
}

// 查询项目活动详细
export function getProjectActivity(avtivityId) {
  return request({
    url: '/wbs/projectActivity/' + avtivityId,
    method: 'get'
  })
}

// 新增项目活动
export function addProjectActivity(data) {
  return request({
    url: '/wbs/projectActivity',
    method: 'post',
    data: data
  })
}

// 修改项目活动
export function updateProjectActivity(data) {
  return request({
    url: '/wbs/projectActivity',
    method: 'put',
    data: data
  })
}

// 删除项目活动
export function delProjectActivity(avtivityId) {
  return request({
    url: '/wbs/projectActivity/' + avtivityId,
    method: 'delete'
  })
}
